﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OnlineStore.Bll;
using OnlineStore.Dal;
namespace OnlineStore.Bll
{
    public class EditControl
    {
        tbProduct tbProduct = new tbProduct();
        public Boolean EditProduct(string name, int idfather, string type, string size, string color, string introduce, string detail, int purqty, int ordqty, int stoqty, double price, string picture)
        {
            tbProduct.Product_Name = name;
            tbProduct.Father = idfather;
            tbProduct.Type = type;
            tbProduct.Size = size;
            tbProduct.Color = color;
            tbProduct.Introduce = introduce;
            tbProduct.Detail = detail;
            tbProduct.Price = price;
            tbProduct.Pur_Qty = purqty;
            tbProduct.Ord_Qty = ordqty;
            tbProduct.Stock_Qty = stoqty;
            tbProduct.Picture = picture;
            
            //dua vao csdl

            return true;
        }
        public bool isFather(string idfather)
        {
            return true;
            //return false
        }
    }
}